package com.qsd.TeacherSystem.Service;

import com.qsd.common.po.Teacher;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface TeacherService {
	
	/**
	 * 登录
	 * @param username 教师工号
	 * @param password 密码
	 * @return 状态码
	 * */
	Teacher login(String username, String password);
	/**
	 * 注册，后登陆
	 * @param teacher 教师注册信息
	 * @return 注册结果
	 * */
	Integer register(Teacher teacher);

	/**
	 * 修改用户信息
	 * @param teacher
	 * @param request
	 * @return
	 */
    boolean updateInfo(Teacher teacher, HttpServletRequest request);

	/**
	 * 更换用户头像
	 * @param multipartFile
	 * @param username
	 * @param request
     * @return
	 */
    boolean uploadFileForHeader(MultipartFile multipartFile, String username, HttpServletRequest request);
}
